package com.jp.vn.main;

import java.util.ArrayList;

import com.jp.vn.CustomAdapter.ThoiGianAdapter;
import com.jp.vn.Object.ThoiGian;

import android.support.v4.app.Fragment;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ListView;

public class FragmentDemPhut extends Fragment {
	
	ArrayList<ThoiGian> arrayPhut = new ArrayList<ThoiGian>();
	ListView list;
	
	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState) {
		View view = inflater.inflate(R.layout.fragment_demgiophut, container, false);
		list = (ListView)view.findViewById(R.id.mylist);
		
		dumyData();
		ThoiGianAdapter adapter = new ThoiGianAdapter(view.getContext(), arrayPhut);
		list.setAdapter(adapter);
		
		return view;
	}
	
	void dumyData(){
		
		arrayPhut.add(new ThoiGian("1 phút","いっぷん","ippun"));
		arrayPhut.add(new ThoiGian("2 phút","にふん","ni fun"));
		arrayPhut.add(new ThoiGian("3 phút","さんぷん","san pun"));
		arrayPhut.add(new ThoiGian("4 phút","よんぷん","yon pun"));
		arrayPhut.add(new ThoiGian("5 phút","ごふん  ","go fun"));
		arrayPhut.add(new ThoiGian("6 phút","ろっぷん ","roppun"));
		arrayPhut.add(new ThoiGian("7 phút","しちふん","shichi fun"));
		arrayPhut.add(new ThoiGian("8 phút","はっぷん","happun"));
		arrayPhut.add(new ThoiGian("9 phút","きゅうふん","kyuu fun"));
		arrayPhut.add(new ThoiGian("10 phút","じゅっぷん","juppun"));
		arrayPhut.add(new ThoiGian("15 phút","じゅうごふん","juu go fun"));
		arrayPhut.add(new ThoiGian("20 phút","にじゅっぷん","ni juppun "));
		arrayPhut.add(new ThoiGian("25 phút","にじゅうごふん","ni juu go fun"));
		arrayPhut.add(new ThoiGian("Mấy phút","なんぷん","nan pun"));
	}
}
